package com.egg.mall.model.request;

import com.egg.common.core.model.request.BaseRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;


@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "属性新增/编辑")
public class AttributeListPut extends BaseRequest {


    @ApiModelProperty(value = "类型")
    private String type;

    @ApiModelProperty(value = "集合")
    private List<Attribute> attributes;

    @Data
    public static class Attribute {


        @ApiModelProperty(value = "主键ID")
        private Long id;

        @ApiModelProperty(value = "名称")
        private String name;


    }
}
